package mutsumimod.monitors;

import basemod.interfaces.OnPlayerTurnStartSubscriber;
import basemod.interfaces.OnStartBattleSubscriber;
import basemod.interfaces.PostPowerApplySubscriber;
import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.powers.AbstractPower;
import com.megacrit.cardcrawl.rooms.AbstractRoom;

public class BrokenMonitor extends BaseMonitor implements PostPowerApplySubscriber, OnPlayerTurnStartSubscriber {

    public static boolean isGetDebuffThisTurn=false;

    @Override
    public void receivePostPowerApplySubscriber(AbstractPower abstractPower, AbstractCreature abstractCreature, AbstractCreature abstractCreature1) {
        if(abstractPower.type.equals(AbstractPower.PowerType.DEBUFF)&&abstractCreature.equals(AbstractDungeon.player)) {
            isGetDebuffThisTurn=true;
        }
    }

    @Override
    public void receiveOnPlayerTurnStart() {
        isGetDebuffThisTurn=false;
    }
}
